//
//  TKIMFileUpDownProtocal.h
//  TKIM
//
//  Created by liupm on 15/11/11.
//  Copyright © 2015年 liupm. All rights reserved.
//

typedef NS_ENUM(NSInteger,TKIMFileUploadMimeType) {
    TKIMFileUploadMimeTypeIMG,//图片
    TKIMFileUploadMimeAudio,//音频
    TKIMFileUploadMimeVideo,//视频
    TKIMFileUploadMimeTypeFile//文件
};

typedef void(^FileUplDownLoadSuccess)(NSObject *obj);//文件上传或下载成功
typedef void(^FileUpDownloadUploading)(NSInteger totalBytes,NSInteger bytesWritten);//文件正在上传或下载
typedef void(^FileUpDownloadUploadFail)(NSError *error);//文件上传或下载失败

@protocol TKIMFileUpDownProtocol <NSObject>
@property(nonatomic,strong) FileUpDownloadUploadFail failCallback;//上传下载失败
@property(nonatomic,strong) FileUpDownloadUploading loadingCallback;//正在上传下载
@property(nonatomic,strong) FileUplDownLoadSuccess successCallback;//上传下载成功
@property(nonatomic,strong) NSMutableData *receiveData;//服务器返回的数据

/**
 *  @Author lpm, 15-11-12 10:11:19
 *
 *  @brief  取消
 */
-(void)cancel;
@end